package com.bwie.fegin;

import com.bwie.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * @author lenovo
 */
@FeignClient(value = "ps6-month-demo-goods", fallback = SelectGoodsByIdImpl.class)
public interface SelectGoodsById {

    @PostMapping("/goods/selectById/{id}")
    GoodsVo selectById(@PathVariable("id") Integer id);
}
